<template>
  <div>
    <card
      title="业务办理"
      :headstyle="cardstyle"
      :class="initAnchorInfo"
      shadow="nerver"
    >
      <PublicTable
        ref="table1"
        :loading="false"
        :table-data="info"
        :columns="columns"
        :options="options"
      />
    </card>
  </div>
</template>

<script>

const columns = [
  {
    label: "委托编号",
    prop: "CONTRACTNO",
    minwidth: "110",
  },
  {
    label: "委托日期",
    prop: "CONTRACTDATE",
    minwidth: "110",
  },
  {
    label: "委托人",
    prop: "SHIPPERNAME",
    minwidth: "250",
  },
  {
    label: "付款方",
    prop: "PAYERNAME",
    minwidth: "250",
  },
  {
    label: "委托量",
    prop: "PLANTONS",
    minwidth: "100",
  },
  {
    label: "公估单位",
    prop: "GGDWNAME",
    minwidth: "100",
  },
  {
    label: "采样单位",
    prop: "CYDWNAME",
    minwidth: "100",
  },
  {
    label: "录入人",
    prop: "CREATEUSER",
    minwidth: "100",
  },
  {
    label: "录入时间",
    prop: "CREATETIME",
    minwidth: "140",
  },
  /**
   * {
    label: "审核人",
    prop: "PLANARRIVETIME",
    minwidth: "140",
  },
  {
    label: "审核时间",
    prop: "PLANARRIVETIME",
    minwidth: "140",
  },
  {
    label: "提运单号",
    prop: "ATANCHORTIME",
    minwidth: "140",
  },
  {
    label: "货名",
    prop: "ATANCHORTIME",
    minwidth: "140",
  },
  {
    label: "提运单吨",
    prop: "ATANCHORTIME",
    minwidth: "140",
  } */
];
export default {
  name: "YwBl",
  props: {
    initAnchorInfo: {
      type: String,
      default: "xxxxxxxx",
    },
    cardstyle: {
      type: Object,
      default() {
        return {}
      },
    },
    shipseq: {
      type: String,
      default() {
        return ""
      },
    },
  },
  data() {
    return {
      info: [],
      columns,
      options: {},
    }
  },
  computed: {
    infoform() {
      return this.info[0] || {}
    }
  },
  mounted() {
    this.init()
  },
  methods: {
    init() {
      this.queryinfo()
    },
    // 查询船舶基本信息
    queryinfo() {
      this.$api.summary.JK_SHIP_WTINFO({ shipseq: this.shipseq }).then((val) => {
        this.info = val
      })
    },
  }
}
</script>

<style lang="scss" scoped>

</style>
